<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.firstsoft.modules.portlet.domain.PortletNewModuleFields" table="portlet_new_module_fields">
     <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				         <param name="sequence">PORTLET_NEW_FIELDS_ID_SEQ</param>
            </generator>
     </id>

	<property name="name" type="string">
              <column name="name" length="200" />
    </property>
    <property name="code" type="string">
           <column name="code" length="100" />
    </property>
    <property name="visible" type="integer">
           <column name="visible" />
    </property>
    <property name="nameHK" type="string">
           <column name="name_HK" length="200"/>
    </property>
    <property name="fieldType" type="string">
           <column name="field_type" length="100"/>
    </property>
    <many-to-one name="portletNewModules" class="cn.firstsoft.modules.portlet.domain.PortletNewModules" fetch="select">
          <column name="portlet_new_module_id"/>
    </many-to-one>
    </class>

</hibernate-mapping>
